<template>
<input v-model="test" />
<h1>我的名字是:{{ test }}</h1>
</template>

<script setup>
import {ref} from 'vue';
const test = ref('')
</script>

<style scoped>
</style>